package XMLScene;

import Tracer.RTVector;

/**
 * Class to store properties of camera.
 * 
 * @author forrest Lorraine eagle
 */
public class RTCamera {
	/**
	 * the location of camera
	 */
	private RTVector cLocation;
	/**
	 * the sky of camera
	 */
	private RTVector cSky;
	/**
	 * the direction of camera
	 */
	private RTVector cLookat;

	/**
	 * Constructor method
	 * 
	 * @param location
	 * @param sky
	 * @param lookat
	 */
	public RTCamera(final RTVector location, final RTVector sky,
			final RTVector lookat) {
		cLocation = new RTVector(location);
		cSky = new RTVector(sky);
		cLookat = new RTVector(lookat);
	}

	/**
	 * Getter of location vector
	 * 
	 * @return the location of camera
	 */
	public final RTVector getLocationVector() {
		return cLocation;
	}

	/**
	 * Getter of sky vector
	 * 
	 * @return the sky vector of camera
	 */
	public final RTVector getSkyVector() {
		return cSky;
	}

	/**
	 * Getter of look at vector
	 * 
	 * @return the look at vector of sky
	 */
	public final RTVector getLookatVector() {
		return cLookat;
	}
}
